/*
 * All content copyright http://www.j2eefast.com, unless
 * otherwise indicated. All rights reserved.
 * No deletion without permission
 */
package com.clwl.supervise.superviseapp.mapper.supervise;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.clwl.supervise.superviseapp.entity.supervise.JgClassifySpxs;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * JG_CLASSIFY_SPXS Mapper接口
 * @author: GuXueJian
 * @date 2023-10-06 22:37:02
 */
public interface JgClassifySpxsMapper extends BaseMapper<JgClassifySpxs> {

    /**
     * 自定义分页查询
     * @param  page
     * @param  jgClassifySpxsEntity 实体类
     */
    Page<JgClassifySpxs> findPage(IPage<JgClassifySpxs> page,
                                      @Param("jgClassifySpxs") JgClassifySpxs jgClassifySpxsEntity,
                                      @Param("sql_filter") String sql_filter);

    /**
     * 通过ID查询
     * @param id 查询ID
     * @return
     */
    JgClassifySpxs findJgClassifySpxsById(@Param("id") Long id);

    /**
     * 查询列表
     * @param jgClassifySpxsEntity 查询条件对象
     * @return
     */
    List<JgClassifySpxs> findList(JgClassifySpxs jgClassifySpxsEntity);

    JgClassifySpxs selectByProcessCodeAndCompanyType( @Param("processId") Long processId, @Param("companyTypeId")  Long companyTypeId);
}
